package com.java.comprehensive.design.behavioral_model.chain_of_responsibility_pattern;

/**
 * 小组长类
 */
public class GroupLeader extends Handler {

    public GroupLeader() {
        super(0, Handler.NO_ONE);
    }

    @Override
    protected void handlerLeave(LeaveRequest leave) {
        System.out.println(leave.getName() + "请假" + leave.getNum() + "天，" + leave.getContent() + "。");
        System.out.println("小组长审批同意");
        System.out.println("=====================================================================");
    }
}
